<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Title</title>
</head>
<body>
	<button>请求京东数据</button>
</body>
<script src="lib/jsonp.js"></script>
<script>
	// https://fts.jd.com/area/get?fid=143&callback=mm
	document.querySelector("button").onclick = function(){
		jsonp({
			url:"https://fts.jd.com/area/get",
			params:{
				fid:51037
			},
			jsonp:"callback",
			success(res){
				console.log(res);
			}
		})
	}
</script>
</html>